package com.leen.video.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import javax.persistence.*;
import java.io.Serializable;

/**
 *
 * @author yy
 * @since 2021-05-19
 */
@Setter
@Getter
@Entity
@Table(name = "alipay_config")
@ApiModel(value="AlipayConfig对象")
public class AlipayConfig implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    private Long id;

    @ApiModelProperty(value = "应用ID")
    @Column(name = "app_id")
    private String appId;

    @ApiModelProperty(value = "编码")
    @Column(name = "charset")
    private String charset;

    @ApiModelProperty(value = "类型 固定格式json")
    @Column(name = "format")
    private String format;

    @ApiModelProperty(value = "网关地址")
    @Column(name = "gateway_url")
    private String gatewayUrl;

    @ApiModelProperty(value = "异步回调")
    @Column(name = "notify_url")
    private String notifyUrl;

    @ApiModelProperty(value = "私钥")
    @Column(name = "private_key")
    private String privateKey;

    @ApiModelProperty(value = "公钥")
    @Column(name = "public_key")
    private String publicKey;

    @ApiModelProperty(value = "回调地址")
    @Column(name = "return_url")
    private String returnUrl;

    @ApiModelProperty(value = "签名方式")
    @Column(name = "sign_type")
    private String signType;

    @Column(name = "sys_service_provider_id")
    @ApiModelProperty(value = "商户号")
    private String sysServiceProviderId;


}
